<div id="center_tieude">
    <img src="../../Picture/admin.ico"/>
    <h3>Cập Nhật Tin Tức</h3>        
</div> <!--end id center_tieude-->

<div class="themmoi">
<?php 
	$arr=tintuc::GetByIDFull($_GET['id']);
	for($i=0;$i<count($arr);$i++)
	{
		
?>
<form action="" method="post" enctype="multipart/form-data">
	<table>
    	<tr>
        	<td align="right" >ID</td>
            <td align="left"><input type="text" name="id" value="<?php echo $_GET['id'];?>" disabled="disabled"></td>
        </tr>
    	<tr>
        	<td align="right" >Mô tả<span style="color:red">(*)</span></td>
            <td align="left"><input type="text" name="mota" value="<?php echo $arr[$i]->MoTa;?>"></td>
        </tr>
        <tr>
        	<td align="right" >Nội dung<span style="color:red">(*)</span></td>
            <td align="left"><textarea name="noidung" rows="4" cols="16"><?php echo $arr[$i]->NoiDung;?></textarea></td>
        </tr>
        <tr>
        	<td align="right" >Hình ảnh<span style="color:red">(*)</span></td>
            <td align="left">
            	<input type="text" name="hinhanh" value="<?php echo $arr[$i]->HinhAnh;?>"/>
                <input type="file" name="file"/>
            </td>
        </tr>
        <tr>
        	<td align="right" >Active<span style="color:red">(*)</span></td>
            <td>
                <select name="active">
                	<?php
						if($arr[$i]->Active==1)
							echo '<option value="1" hidden="1">Kích hoạt</option>';
						else
							echo '<option value="0" hidden="1">Ẩn đi</option>';
					?>
                    <option value="1">Kích hoạt</option>
                    <option value="0">Ẩn đi</option>
                </select>
            </td>
        </tr>
        <tr>
        	<td></td>
        	<td >
            	<input  type="submit" name="capnhattintuc" value="Cập Nhật">
                <input  type="submit" name="nhaplaitintuc" value="Nhập Lại">
                <a href="admin.php?obj=tintuc"><input  type="button" name="huy" value="Hủy"></a>
        	</td>
        </tr>
    </table>
</form>
<?php
	}
	?>
</div>